home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2003 July / CD 2 Debian 3.0r1 / Debian.iso / isolinux / root.bin / root / usr / bin / vi < prev    next >
Encoding:
Text File  |  2001-07-04  |  1.6 KB  |  58 lines

  1. #!/bin/sh
  2.  
  3. case $0 in
  4. basename)
  5.     _fn=${1##*/}
  6.     echo ${_fn%%$2}
  7.     ;;
  8. lilo|*/lilo)
  9.     if [ ! -x /target/sbin/lilo ];then
  10.         echo "You must mount your root filesystem under /target and the base system
  11. must be installed to be able to run lilo.  To mount your root
  12. filesystem use: \"mount <partition> /target\" where <partition> is the
  13. device name of the partition where your root filesystem is. Or use the
  14. \"Mount a Previously-Initialized Partition\" option in the
  15. installation system's main menu."
  16.         exit 1
  17.     fi
  18.     LD_LIBRARY_PATH=/target/lib:/target/usr/lib /target/sbin/lilo -r /target
  19.     ;;
  20. emacs|*/emacs|vi|*/vi)
  21.     echo "Emacs and vi are available in Debian, but wouldn't fit on the
  22. installation floppies. Please type \"nano-tiny\" to invoke a tiny, but
  23. easy-to-learn editor. As soon as you have your system installed, you
  24. may install the \"emacs\" package, and/or the \"vim\" or \"nvi\"
  25. packages.  \"vim\" and \"nvi\" each provide a different version of
  26. \"vi\"."
  27.     exit 1
  28.     ;;
  29. ae|*/ae)
  30.         echo "This filesystem provides \"nano-tiny\" rather than \"ae\" now.
  31. Please use that."
  32.         exit 1
  33.     ;;
  34. mformat|*/mformat)
  35.     echo "mformat: lazybox no op"
  36.     ;;
  37. man|*/man)
  38.     echo "No manual pages are available on the Rescue Disk.  To read manual
  39. pages, reboot into your system when installation is done, and install
  40. the \"man-db\" package.  You can do this by running:
  41.  
  42.     apt-get install man-db"
  43.     ;;
  44. fgrep|*/fgrep)
  45.         grep "$@"
  46.         ;;
  47. fuser|*/fuser)
  48.         # no op, needed by pcmcia
  49.         ;;
  50. netstat|*/netstat)
  51.         # no op, needed by pcmcia
  52.         ;;
  53. *)
  54.     echo "no function defined for $0"
  55.     exit 1
  56. esac
  57. exit 0
  58.